Optimal. Leaf size=53 \[ -\frac{a^2 A}{x}+\frac{1}{5} b x^5 (2 a B+A b)+\frac{1}{2} a x^2 (a B+2 A b)+\frac{1}{8} b^2 B x^8 \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0946615, antiderivative size = 53, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05 \[ -\frac{a^2 A}{x}+\frac{1}{5} b x^5 (2 a B+A b)+\frac{1}{2} a x^2 (a B+2 A b)+\frac{1}{8} b^2 B x^8 \]
Antiderivative was successfully verified.
[In] Int[((a + b*x^3)^2*(A + B*x^3))/x^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ - \frac{A a^{2}}{x} + \frac{B b^{2} x^{8}}{8} + a \left (2 A b + B a\right ) \int x\, dx + \frac{b x^{5} \left (A b + 2 B a\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x**3+a)**2*(B*x**3+A)/x**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0353172, size = 53, normalized size = 1. \[ -\frac{a^2 A}{x}+\frac{1}{5} b x^5 (2 a B+A b)+\frac{1}{2} a x^2 (a B+2 A b)+\frac{1}{8} b^2 B x^8 \]
Antiderivative was successfully verified.
[In] Integrate[((a + b*x^3)^2*(A + B*x^3))/x^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.005, size = 53, normalized size = 1. \[{\frac{{b}^{2}B{x}^{8}}{8}}+{\frac{A{x}^{5}{b}^{2}}{5}}+{\frac{2\,B{x}^{5}ab}{5}}+A{x}^{2}ab+{\frac{B{x}^{2}{a}^{2}}{2}}-{\frac{A{a}^{2}}{x}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x^3+a)^2*(B*x^3+A)/x^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.38827, size = 69, normalized size = 1.3 \[ \frac{1}{8} \, B b^{2} x^{8} + \frac{1}{5} \,{\left (2 \, B a b + A b^{2}\right )} x^{5} + \frac{1}{2} \,{\left (B a^{2} + 2 \, A a b\right )} x^{2} - \frac{A a^{2}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^3 + A)*(b*x^3 + a)^2/x^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.21499, size = 72, normalized size = 1.36 \[ \frac{5 \, B b^{2} x^{9} + 8 \,{\left (2 \, B a b + A b^{2}\right )} x^{6} + 20 \,{\left (B a^{2} + 2 \, A a b\right )} x^{3} - 40 \, A a^{2}}{40 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^3 + A)*(b*x^3 + a)^2/x^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.17333, size = 49, normalized size = 0.92 \[ - \frac{A a^{2}}{x} + \frac{B b^{2} x^{8}}{8} + x^{5} \left (\frac{A b^{2}}{5} + \frac{2 B a b}{5}\right ) + x^{2} \left (A a b + \frac{B a^{2}}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x**3+a)**2*(B*x**3+A)/x**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.219328, size = 70, normalized size = 1.32 \[ \frac{1}{8} \, B b^{2} x^{8} + \frac{2}{5} \, B a b x^{5} + \frac{1}{5} \, A b^{2} x^{5} + \frac{1}{2} \, B a^{2} x^{2} + A a b x^{2} - \frac{A a^{2}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^3 + A)*(b*x^3 + a)^2/x^2,x, algorithm="giac")
[Out]